package com.iv.durian.cloud.api;

import com.iv.durian.cloud.vo.SearchVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collections;
import java.util.List;

@RestController
@Slf4j
@Api(value = "SearchApi" ,description = "SearchApi",tags={"search"} )
public class SearchApi {
    @ApiOperation(value = "全局搜索")
    @RequestMapping(value = "/api/search", method = RequestMethod.GET)
    public List<SearchVO> search(
            @ApiParam(name = "text",value = "搜索内容",required = true) @RequestParam(value = "text") String text
    ){


        return Collections.emptyList();
    }
}
